package com.vogue.supplymall.admin.business.domain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The type Admin account bill.
 * 集团消费账单信息 -- 包年和包月是预付费，按单扣点是后付费
 */
@Entity
@Table(name = "admin_account_bill")
public class AdminAccountBill extends BaseEntity implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 7186500225850254165L;
    /**
     * admin集团id
     */
    private Long organid;
    /**
     * admin集团id
     */
    private Long consumeid;
    /**
     * 系统唯一注册码的id
     */
    private Long syscodeid;
    /**
     * 账单金额
     */
    private BigDecimal amount;
    /**
     * 消费日期-开始
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date startdate;
    /**
     * 消费日期-结束
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date enddate;
    /**
     * 操作者id
     */
    private Long updateuserid;
    /**
     * 操作者名称
     */
    private String updateuser;

    /**
     * Gets organid.
     *
     * @return the organid
     */
    public Long getOrganid() {
        return organid;
    }

    /**
     * Sets organid.
     *
     * @param organid the organid
     */
    public void setOrganid(Long organid) {
        this.organid = organid;
    }

    /**
     * Gets consumeid.
     *
     * @return the consumeid
     */
    public Long getConsumeid() {
        return consumeid;
    }

    /**
     * Sets consumeid.
     *
     * @param consumeid the consumeid
     */
    public void setConsumeid(Long consumeid) {
        this.consumeid = consumeid;
    }

    /**
     * Gets syscodeid.
     *
     * @return the syscodeid
     */
    public Long getSyscodeid() {
        return syscodeid;
    }

    /**
     * Sets syscodeid.
     *
     * @param syscodeid the syscodeid
     */
    public void setSyscodeid(Long syscodeid) {
        this.syscodeid = syscodeid;
    }

    /**
     * Gets amount.
     *
     * @return the amount
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * Sets amount.
     *
     * @param amount the amount
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * Gets startdate.
     *
     * @return the startdate
     */
    public Date getStartdate() {
        return startdate;
    }

    /**
     * Sets startdate.
     *
     * @param startdate the startdate
     */
    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    /**
     * Gets enddate.
     *
     * @return the enddate
     */
    public Date getEnddate() {
        return enddate;
    }

    /**
     * Sets enddate.
     *
     * @param enddate the enddate
     */
    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    /**
     * Gets updateuserid.
     *
     * @return the updateuserid
     */
    public Long getUpdateuserid() {
        return updateuserid;
    }

    /**
     * Sets updateuserid.
     *
     * @param updateuserid the updateuserid
     */
    public void setUpdateuserid(Long updateuserid) {
        this.updateuserid = updateuserid;
    }

    /**
     * Gets updateuser.
     *
     * @return the updateuser
     */
    public String getUpdateuser() {
        return updateuser;
    }

    /**
     * Sets updateuser.
     *
     * @param updateuser the updateuser
     */
    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }
}
